com.supermap.data
Class PrivateCloudLicenseManager
- java.lang.Object
-
- com.supermap.data.PrivateCloudLicenseManager
-
public class PrivateCloudLicenseManager extends java.lang.Object
The private cloud license manager class.Used to manage the online license information for the current device.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description class
PrivateCloudLicenseManager.privateCloudLicInfo
Private cloud official license information classstatic interface
PrivateCloudLicenseManager.privateLicQueryCallback
Search private cloud license callback listener
-
Constructor Summary
Constructors Constructor and Description PrivateCloudLicenseManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
ApplyFormalLicense(int[] codeArray)
Applies for a private cloud official licensevoid
dispose()
Recycles resourcesstatic PrivateCloudLicenseManager
getInstance()
Gets the instance of the private license manager class.java.lang.String
getServerUrl()
Gets the private cloud server addressboolean
isModuleValid(int code)
After activating a license, determines whether it is validvoid
queryFormalLicense(PrivateCloudLicenseManager.privateLicQueryCallback callback)
Search private cloud official license.void
setServerUrl(java.lang.String url)
Sets the private cloud server addressboolean
VerificationLicense(java.lang.String licensecode, int[] codeArray)
Verification license
-
-
-
Method Detail
-
getInstance
public static PrivateCloudLicenseManager getInstance()
Gets the instance of the private license manager class.- Returns:
- The instance of the private license manager class.
-
setServerUrl
public void setServerUrl(java.lang.String url)
Sets the private cloud server address- Parameters:
url
- the private cloud server address
-
getServerUrl
public java.lang.String getServerUrl()
Gets the private cloud server address- Returns:
- the private cloud server address
-
queryFormalLicense
public void queryFormalLicense(PrivateCloudLicenseManager.privateLicQueryCallback callback)
Search private cloud official license.- Parameters:
callback
- the listener callback
-
ApplyFormalLicense
public boolean ApplyFormalLicense(int[] codeArray)
Applies for a private cloud official license- Parameters:
codeArray
- The applied module ID array- Returns:
- Returns true unless all modules applied for licenses successfully. Otherwise, returns false
-
dispose
public void dispose()
Recycles resources
-
isModuleValid
public boolean isModuleValid(int code)
After activating a license, determines whether it is valid- Parameters:
code
- license module id- Returns:
- whether it is valid.
-
VerificationLicense
public boolean VerificationLicense(java.lang.String licensecode, int[] codeArray)
Verification license- Parameter:
licensecode
-
-
-